
#ifndef _MEMBER_BHBOXLAYOUT_H_
#define _MEMBER_BHBOXLAYOUT_H_

#include <BSpring>
#include <BSpacer>
#include <BWidget>
#include <BHBoxLayout>
#include "member_BLayout.h"

#define hboxlayout_member(layout)		((member_BHBoxLayout*)((BHBoxLayout*)layout)->_ptr)

namespace BWE
{
	class BWidget;

	class member_BHBoxLayout
	{
	public:
		member_BHBoxLayout(BHBoxLayout* layout);
		~member_BHBoxLayout();

		int distributeWidth(int remainWidth);

		BHBoxLayout*		boss;
		BLayout*			parent;
		BArray<LayoutItem>	items;
	};
}

#endif
